<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->load->view('include/html_head')?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('include/header')?>
	<?php $this->load->view('include/menu')?>
	<div id="page">
		<div id="content">
		<?php if ($_SESSION['function_FLAG'] == NOT_FUNCTION):?>
			<script>
			$(function() {
				//association index的  信息折叠 js
				var offset = $('#fold').offset();
				var offset_nav = $('#index_nav').offset();
			    $('#hidden_div').css('margin-left', (offset.left-offset_nav.left)+"px");
				$('#fold_Symbol').click(function() {
					$('#hidden_div').show();
					if ($(this).text().indexOf('-') > -1) {
			            $('#hidden_div').fadeOut();
			            $(this).text("[+]");
					} else {
			            $('#hidden_div').show("100");
			            $(this).text("[-]");
					}
				});
			});
			</script>
			<div id='index_nav'>
			<div id='fold'>
				<span id='fold_name'><?php echo $association['a_name'] . '(' . $this->common_data->_get_association_status_by_confirm_flag($_SESSION['confirm_FLAG']) . ')'?> - 个人信息</span>
				<span id='fold_Symbol'> [+]</span>
			</div>
				<div id="hidden_div">
					<ul>
					<fieldset>
					<legend><b>社联成员基本信息</b></legend>
					  <li>姓名:<span class="span"><?php echo $association['a_name']?></span></li>
					  <li>性别:<span class="span"><?php echo $this->common_data->_get_gender_by_cid($association['a_gender']);?></span></li>
					  
					  <li>生日:<span class="span"><?php echo $this->common->convert_birthday($association['a_birth']);?></span></li>
					  <li>部门:<span class="span"><?php echo $this->common_data->_get_association_category_name_by_cid($association['a_category'])?></span></li>
					  
					  <li>学号:<span class="span"><?php echo $association['a_stu_num']?></span></li>
					  
						<?php $temp_col_pro = $this->col_pro_data->_get_category_name_by_id($association['a_col']) . ' - ' . $this->col_pro_data->_get_category_name_by_id($association['a_pro']);?>
					  <li>学院专业:<span id='col_pro' class="span" title='<?php echo $temp_col_pro?>'><?php echo ellipsize($temp_col_pro, 14, .5)?></span></li>
					  
					  <li>电话:<span class="span"><?php echo $association['a_phone']?></span></li>
					  <li>QQ：<span class="span"><?php echo $association['a_qq']?></span></li>
					</fieldset>
					</ul>
					<a class='anchor_button' href='<?php echo BACKEND_ASSOCIATION_UPDATE_INFO_PATH ?>'>修改个人信息</a>
				</div>
		    </div>
		<?php elseif ($_SESSION['function_FLAG'] == IS_FUNCTION):?>
			<div id='index_nav'>
			<div id='fold'>
				<span id='fold_name'><?php echo $user_info['department_name'];?> - 功能帐号</span>
			</div>
			</div>
		<?php endif;?>
		    <div>
		 		<ul id='list'>
		 			<?php if ($_SESSION['function_FLAG'] == NOT_FUNCTION):?>
		 			<li><p id='backend_nav_icon_1'></p><a href='<?php echo BACKEND_ASSOCIATION_UPDATE_INFO_PATH ?>'>个人信息设置</a></li>
		 			<?php endif;?>
		 			
		 			<?php if ($_SESSION['confirm_FLAG'] == ASSOCIATION_VERIFY_PASS && $_SESSION['function_FLAG'] == IS_FUNCTION):?>
			 			<?php if ($_SESSION['cid'] == ASSOCIATION_XCB_CID):?>
			 			<li><p id='backend_nav_icon_4'></p><a href='<?php echo BACKEND_ASSOCIATION_NEWS_LIST_PATH ?>'>新闻发布管理</a></li>
			 			<li><p id='backend_nav_icon_5'></p><a href='<?php echo BACKEND_ASSOCIATION_ANNOUNCEMENT_LIST_PATH ?>'>公告发布管理</a></li>
			 			<?php elseif ($_SESSION['cid'] == ASSOCIATION_STGLB_CID):?>
			 			<li><p id='backend_nav_icon_6'></p><a href='<?php echo BACKEND_ASSOCIATION_VERIFY_PATH ?>'>社团审核管理</a></li>
			 			<li><p id='backend_nav_icon_7'></p><?php echo anchor_popup(BACKEND_ASSOCIATION_FILE_MANAGE_PATH, '文件同步管理', array());?></li>
		 				<?php elseif ($_SESSION['cid'] == ASSOCIATION_ZZB_CID):?>
		 				<li><p id='backend_nav_icon_6'></p><a href='<?php echo BACKEND_ASSOCIATION_EMPLOYEE_SEARCH_PATH ?>'>社联成员管理</a></li>
		 				<?php endif;?>
			 		<?php endif;?>
		 			
		 			<?php if ($_SESSION['function_FLAG'] == NOT_FUNCTION):?>
		 			<li><p id='backend_nav_icon_8'></p><a href='<?php echo BACKEND_ASSOCIATION_CHANGE_PASSWORD_PATH ?>'>登录密码修改</a></li>
		 			<li><p id='backend_nav_icon_9'></p><a href='<?php echo BACKEND_ASSOCIATION_CHANGE_EMAIL_PATH ?>'>电子邮箱修改</a></li>
		 			<?php endif;?>
		 		</ul>
		 	</div>
		 	
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<?php //$this->load->view('include/side_bar')?>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
<?php $this->load->view('include/footer_content')?>
<?php $this->load->view('include/footer')?>
</body>
</html>
